##################################
### Imperial events by Dmitriy ###
##################################

event = {
	id = 3801
	random = no
	country = BOH
	name = "EVENTNAME3801"
	desc = "EVENTHIST3801"
	style = 1
	
	date = { day = 16 month = august year = 1419 }
	offset = 0

	action_a ={ # The traitor will not rule Bohemia!
		name = "ACTIONNAME3801A"
		command = { type = stability value = 2 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = relation which = HUN value = -200 }
		command = { type = relation which = BRA value = -200 }
		command = { type = relation which = POL value = 50 }
		command = { type = relation which = LIT value = 50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = breakdynastic which = HUN }
		command = { type = religion which = protestant }
                command = { type = provincemanpower which = -2 value = 5 } 
		command = { type = trigger which = 3851 }
		command = { type = treasury value = 250 }
	}
	action_b ={ # Zigmunt is the legal heir
		name = "ACTIONNAME3801B"
		command = { type = sleepleader which = 09680 } # Jan Ziska
		command = { type = sleepleader which = 09681 } # Prokop Holy
		command = { type = sleepmonarch which = 06231 }
		command = { type = wakemonarch which = 06259 }
		command = { type = stability value = -6 }
		command = { type = domestic which = INNOVATIVE value = -2 }
		command = { type = relation which = HUN value = 200 }
                command = { type = provincemanpower which = -2 value = 5 } 
		command = { type = treasury value = 50 }#   :)#
		command = { type = sleepevent which = 5023 }#   :)#
	}
}

event = {
	id = 5023
	trigger = {
		religion = protestant
		NOT = {
			control = { province = 328 data = -1 }##
			control = { province = 329 data = -1 }# #
			control = { province = 330 data = -1 }##
			control = { province = 315 data = -1 }##
			control = { province = 314 data = -1 }##
		}
		NOT = { flag = e5023 }
	}
	random = no
	country = BOH
	name = " "
	desc = "  -   :"
	style = 1

	date = { day = 10 month = august year = 1419 }
	offset = 0 
	deathdate = { day = 28 month = august year = 1526 }

	action_a ={
		name = "   "
		command = { type = secedeprovince which = POL value = 314 }
		command = { type = secedeprovince which = HUN value = 315 }
		command = { type = secedeprovince which = HAB value = 330 }
		command = { type = trigger which = 5073 }
		command = { type = trigger which = 5131 }
		command = { type = trigger which = 5248 }
		command = { type = stability value = -2 }
		command = { type = vp value = -200 }
		command = { type = setflag which = e5023 }
	}
}

event = {
	id = 5024
	trigger = {
		flag = e5023
		control = { province = 328 data = POL }
		control = { province = 329 data = POL }
	}
	random = no
	country = BOH
	name = " !"
	desc = " :"
	style = 1

	date = { day = 16 month = august year = 1419 }
	offset = 0
	deathdate = { day = 23 month = august year = 1437 }

	action_a ={
		name = "   "
		command = { type = trigger which = 5074 }
		command = { type = sleepevent which = 5025 }
		command = { type = sleepevent which = 5026 }
	}
}

event = {
	id = 5025
	trigger = {
		flag = e5023
		control = { province = 328 data = HUN }
		control = { province = 329 data = HUN }
	}
	random = no
	country = BOH
	name = " !"
	desc = " :"
	style = 1

	date = { day = 16 month = august year = 1419 }
	offset = 0
	deathdate = { day = 23 month = august year = 1437 }

	action_a ={
		name = "   "
		command = { type = trigger which = 5132 }
		command = { type = sleepevent which = 5024 }
		command = { type = sleepevent which = 5026 }
	}
}

event = {
	id = 5026
	trigger = {
		flag = e5023
		control = { province = 328 data = HAB }
		control = { province = 329 data = HAB }
	}
	random = no
	country = BOH
	name = " !"
	desc = " :"
	style = 1

	date = { day = 16 month = august year = 1419 }
	offset = 0
	deathdate = { day = 23 month = august year = 1437 }

	action_a ={
		name = "   "
		command = { type = trigger which = 5249 }
		command = { type = sleepevent which = 5024 }
		command = { type = sleepevent which = 5025 }
	}
}

event = {
	id = 5021
	trigger = {
		event = 5101
		religion = catholic
	}
	random = no
	country = BOH
	name = "    "
	desc = "... :"
	style = 1

	action_a ={
		name = " "#GameOver#
		command = { type = trigger which = 5103 }
	}
	action_b ={
		name = "    "
		command = { type = stability value = -2 }
		command = { type = relation which = HUN value = -150 }
		command = { type = dynastic which = HAB }
		command = { type = desertion which = -1 value = 7000 }
		command = { type = trigger which = 5104 }
	}
}


event = {
	id = 5022
	trigger = {
		event = 5101
		religion = protestant
	}
	random = no
	country = BOH
	name = "    "
	desc = "   ... :"
	style = 1

	action_a ={
		name = "   "
		command = { type = relation which = HAB value = -100 }
		command = { type = stability value = 1 }
	}
	action_b ={
		name = "  "
		command = { type = relation which = HAB value = -100 }
		command = { type = land value = 750 }
		command = { type = domestic which = land value = 1 }
		command = { type = INF which = -2 value = 7000 }
		command = { type = treasury value = -200 }
	}
	action_c ={
		name = "  "
		command = { type = relation which = HAB value = -100 }
		command = { type = land value = 500 }
		command = { type = domestic which = land value = 1 }
		command = { type = domestic which = offensive value = -1 }
		command = { type = fortress which = 330 value = 1 }
		command = { type = fortress which = 328 value = 1 }
		command = { type = treasury value = -500 }
	}
}


event = {

	id = 5027
	trigger = {
		owned = { province = 351 data = -1 } 
		NOT = {
			exists = HAB
		}
		NOT = { flag = e5027 }
		NOT = {
			core = { province = 351 data = BOH }
			core = { province = 350 data = BOH }
			core = { province = 327 data = BOH }
			core = { province = 348 data = BOH }
			core = { province = 331 data = BOH }
			core = { province = 332 data = BOH }
			core = { province = 347 data = BOH }
		}
	}
	random = no
	country = BOH
	name = " "
	desc = "  ,           ."
	style = 1

	date = { day = 1 month = january year = 1419 }
	offset = 0
	deathdate = { day = 1 month = january year = 1801 }

	action_a ={				
		name = " -   !"
		command = { type = badboy value = -10 }
                command = { type = addcore which = 351 } # 
		command = { type = addcore which = 350 } # 
		command = { type = addcore which = 327 } # 
		command = { type = addcore which = 348 } # 
		command = { type = addcore which = 331 } # 
		command = { type = addcore which = 332 } # 
		command = { type = addcore which = 347 } # 
		command = { type = vassal which = BAY }
                command = { type = provincemanpower which = -2 value = -5 } 
		command = { type = stability value = 2 }
		command = { type = relation which = BAY value = 400 }
		command = { type = relation which = MUN value = 400 }
		command = { type = relation which = WUR value = 400 }
		command = { type = relation which = BAD value = 400 }
		command = { type = relation which = PFA value = 400 }
		command = { type = relation which = MAI value = 400 }
		command = { type = relation which = HES value = 400 }
		command = { type = relation which = MEC value = 400 }
		command = { type = relation which = SHL value = 400 }
		command = { type = relation which = KLE value = 400 }
		command = { type = relation which = KOL value = 400 }
		command = { type = relation which = MAG value = 400 }
		command = { type = relation which = LUX value = 400 }
		command = { type = relation which = BRE value = 400 }
		command = { type = relation which = POM value = 400 }
		command = { type = relation which = THU value = 400 }
		command = { type = relation which = HAN value = 400 }
		command = { type = trigger which = 5028 }
		command = { type = setflag which = e5027 }
	}
}


event = {

	id = 5028
	random = no
	trigger = {
		core = { province = 351 data = HUN }
		core = { province = 369 data = HUN }
	}
	country = HUN
	name = "  "
	desc = "        ,    .        ."
	style = 1

	action_a ={				
		name = "  -  "
                command = { type = remove_countryculture which = german }
                command = { type = removecore which = 351 } # 
		command = { type = removecore which = 369 } # 
		command = { type = stability value = -2 }
		command = { type = relation which = BOH value = -400 }
	}
}


event = {

	id = 5029
	trigger = {
		core = { province = 351 data = BOH }
		core = { province = 350 data = BOH }
		core = { province = 327 data = BOH }
		core = { province = 348 data = BOH }
		core = { province = 331 data = BOH }
		core = { province = 332 data = BOH }
		core = { province = 347 data = BOH }
	}
	random = no
	country = BOH
	name = "  "
	desc = "          ."
	style = 1

	action_a ={				
		name = "  -  "
                command = { type = removecore which = 351 } # 
		command = { type = removecore which = 350 } # 
		command = { type = removecore which = 327 } # 
		command = { type = removecore which = 348 } # 
		command = { type = removecore which = 331 } # 
		command = { type = removecore which = 332 } # 
		command = { type = removecore which = 347 } # 
		command = { type = stability value = -2 }
		command = { type = relation which = BAY value = -400 }
		command = { type = relation which = MUN value = -400 }
		command = { type = relation which = WUR value = -400 }
		command = { type = relation which = BAD value = -400 }
		command = { type = relation which = PFA value = -400 }
		command = { type = relation which = MAI value = -400 }
		command = { type = relation which = HES value = -400 }
		command = { type = relation which = MEC value = -400 }
		command = { type = relation which = SHL value = -400 }
		command = { type = relation which = KLE value = -400 }
		command = { type = relation which = KOL value = -400 }
		command = { type = relation which = MAG value = -400 }
		command = { type = relation which = LUX value = -400 }
		command = { type = relation which = BRE value = -400 }
		command = { type = relation which = POM value = -400 }
		command = { type = relation which = THU value = -400 }
		command = { type = relation which = HAN value = -400 }
		command = { type = relation which = HUN value = -400 }
	}
}



# ids are busy #
